<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"/>
    <link rel="stylesheet" href="__CSS__/common.css" />
    <link rel="stylesheet" href="__CSS__/erweima.css" />
    <title>二维码</title>
</head>
<body>
    <div class="erweima">
        <img src="__IMG__/erweima.png" alt="">
    </div>
    <button class="btn">分享二维码</button>
    <div class="mask"></div>
    <div class="share-box">
        <div>
            <div class="wexin">
                <img class="share" src="__IMG__/nav/weixin.png" alt="">
                <p>微信好友</p>
            </div>
            <div class="pengyou">
                <img class="share"  src="__IMG__/nav/pengyouquan.png" alt="">
                <p>朋友圈</p>
            </div>
        </div>
        <a>取消</a>
    </div>

</body>
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/layer.js"></script>
<script type="text/javascript">
    $(".btn").click(()=>{
        $(".mask").css("height",$(document).height());
        $(".mask").css("width",$(document).width());
        $('.mask').show();
        $('.share-box').show();
    })
    $('.share-box>a').click(()=>{
        $('.share-box').hide();
        $('.mask').hide();
    })
    $('.share').click((e)=>{
        var weixin=$('.wexin>img').attr('src');
        var pengyou=$('.pengyou>img').attr('src');

        var tar=$(e.target).attr('src');
        if(tar==weixin){console.log('微信')}
        else if(tar==pengyou)console.log('朋友圈')

    })
</script>
</html>